#ifndef _FIG_PICKUP_ANIMATION_H_
#define _FIG_PICKUP_ANIMATION_H_

#include "fig_pickup.h"

#include "ui/ui_sprite.h"
#include "math/vec2.h"

class FIGPickupAnimation
{

public:
	
	static FIGPickupAnimation&			Instance();
	


	virtual void						Render(const math::Vec2& Offset,float Scale);
	virtual void						RenderDebug(const math::Vec2& Offset,float Scale);	
	virtual void						Tick(float dt);

	void								Animate(const math::Vec2& From,
												FIGPickup::PICKUP_TYPES Type
												);
	
    	
protected:
		
		
	FIGPickupAnimation();

	ui::UISprite						m_SpriteStar;
	ui::UISprite						m_Sprite1UP;
	ui::UISprite						m_SpriteHP;
	ui::UISprite						m_SpriteNuke;

	math::Vec2							m_SizeStar;
	math::Vec2							m_Size1UP;
	math::Vec2							m_SizeHP;
	math::Vec2							m_SizeNuke;

	math::Vec2							m_DestinationStar;
	math::Vec2							m_Destination1Up;
	math::Vec2							m_DestinationHP;
	math::Vec2							m_DestinationNuke;

	std::vector<math::Vec2>				m_Positions;
	std::vector<int>					m_Types;
	std::vector<float>					m_ArcCounters;
	std::vector<float>					m_Rotations;
	
	
	

};

#endif